package co.com.smart.eagle.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the menus_x_menu database table.
 * 
 */
@Entity
@Table(name="menus_x_menu")
@NamedQuery(name="EagleSecurityMenusXMenu.findAll", query="SELECT w FROM EagleSecurityMenusXMenu w")
public class EagleSecurityMenusXMenu implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	EagleSecurityMenusXMenuPK pk;
	
	@Column(name="order_seq")
	private BigDecimal orderSeq;

	public EagleSecurityMenusXMenuPK getPk() {
		return pk;
	}

	public void setPk(EagleSecurityMenusXMenuPK pk) {
		this.pk = pk;
	}

	//bi-directional many-to-one association to WlsSecurityMenu
	@ManyToOne
	@JoinColumn(name="id_menu_parent", referencedColumnName="idmenu", updatable = false, insertable = false)
	private EagleSecurityMenu parent;

	//bi-directional many-to-one association to WlsSecurityMenu
	@ManyToOne
	@JoinColumn(name="id_menu_child", referencedColumnName="idmenu", updatable = false, insertable = false)
	private EagleSecurityMenu child;

	public EagleSecurityMenusXMenu() {
	}

	public BigDecimal getOrderSeq() {
		return this.orderSeq;
	}

	public void setOrderSeq(BigDecimal orderSeq) {
		this.orderSeq = orderSeq;
	}

	public EagleSecurityMenu getParent() {
		return parent;
	}

	public void setParent(EagleSecurityMenu parent) {
		this.parent = parent;
	}

	public EagleSecurityMenu getChild() {
		return child;
	}

	public void setChild(EagleSecurityMenu child) {
		this.child = child;
	}

}